package com.zhixiang.xaec.service.system.impl;


import java.util.HashMap;
import java.util.Set;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.system.AppRoleDao;
import com.zhixiang.xaec.entity.system.AppRole;
import com.zhixiang.xaec.service.system.AppRoleService;


@Service("appRoleService")
public class AppRoleServiceImpl extends BaseServiceImpl<AppRole, Long> implements AppRoleService
{
    @Autowired
    private AppRoleDao dao;

    @Resource(type = AppRoleDao.class)
    public void setBaseDao(BaseDao<AppRole, Long> dao)
    {
        setDao(dao);
    }

    public AppRole getByRoleName(String paramString)
    {
        return this.dao.getByRoleName(paramString);
    }

    public HashMap<String, Set<String>> getSecurityDataSource()
    {
        return this.dao.getSecurityDataSource();
    }

    public AppRole getById(Long paramLong)
    {
        return (AppRole)get(paramLong);
    }
}
